package pointor

import "fmt"

func RunPointor() {

	//指针默认是nil
	var p *int
	fmt.Println(p)

	//指针初始化
	var i int = 5
	p = &i
	fmt.Println(p)
	fmt.Printf("%d\n", *p)

	//通过指针改变值
	*p = 3444
	fmt.Println(i)
	

}
